#ifndef INPUTTAG_H
#define INPUTTAG_H
#include <QTextEdit>
#include <QKeyEvent>
#include <QSize>
#include <QResizeEvent>
#include <QFontInfo>
#include <QFont>
#include <QSizePolicy>
#include <QTextDocument>
#include <QAbstractTextDocumentLayout>
#include <QPalette>
#include "Tag.h"
#include "LSyntaxHighlighter.h"

class InputTag : public QTextEdit, public Tag {
	Q_OBJECT
public:
	InputTag(QWidget* parent = 0, int _code  = 0, QString* text = 0);

	int height();

signals:
	void evaluateText(const QString&, int);

public slots:
void setFontSize(int);

protected:
void keyPressEvent(QKeyEvent* event);

private:
	int numRow;
	int fontSize;
	LSyntaxHighlighter* hlt;
};

#endif
